<%@ page contentType="text/html;charset=UTF-8"%>
        <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- 采用默认的样式装饰 -->
<meta name="decorator" content="default"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>权限管理列表</title>
</head>
<body>
	<div class="widgetbox">
 
                          <div class="title"><h2>权限列表</h2></div>
                            <div class="widgetcontent padding0 statement">
                               <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
                                    <colgroup>
                                        <col class="con0" />
                                        <col class="con1" />
                                        <col class="con0" />
                                        <col class="con1" />
                                        <col class="con0" />
                                        <col class="con1" />
                                    </colgroup>
                                    <thead>
                                        <tr>
                                            <th class="head0">Id</th>
                                            <th class="head1">权限名称</th>
                                            <th class="head0">标识符</th>
                                            <th class="head1">数据权限</th>
                                            <th class="head0">系统权限</th>
                                            <th class="head0">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <c:forEach items="${permTrees}" var="permTree"> 
                                    	  <tr>
                                    		<td>${permTree.node.id}</td>
                                            <td>|${permTree.node.name} 
                                            </td>
                                            <td>${permTree.node.permission}</td>
                                            <td>${permTree.node.isdata == 1 ? '√' : ''}</td>
                                            <td>${permTree.node.issys == 1 ? '√' : ''}</td>
                                            <td>
	                                          <div class="viopt">
		                                            <div>
		                                            		<a href="${ctx }/sys/menu/add/${permTree.node.id}" class="tb-link">添加下级菜单</a> 
															<a href="${ctx }/sys/menu/edit/${permTree.node.id}" class="tb-link">修改</a> 
															<a href="${ctx }/sys/menu/delete/${permTree.node.id}" class="tb-link">删除</a>
		                                            </div>
												 </div>
											</td>
                                        </tr>
                                       <c:set var="vem" value="1" scope="request" />
                                    	<c:forEach	items="${permTree.childs}" var="selfTree">
                                    		 <%@include file="permsTree.jsp" %> 
                                    	</c:forEach>  
                                    	
                                    	</c:forEach>
                                    </tbody> 
                                </table>
                            </div><!--widgetcontent-->
                        </div><!--widgetbox-->
	 	
	 
	
	
	
</body>
</html>